package com.sangeng.domain.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 评论表(Comment)实体类
 *
 * @author makejava
 * @since 2022-03-07 10:43:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVo implements Serializable {
    private List<CommentVo> children;

    private Long id;
    /**
     * 文章id
     */
    private Long articleId;
    /**
     * 根评论id
     */
    private Long rootId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 所回复的目标评论的userid
     */
    private Long toCommentUserId;
    private String toCommentUserName;
    /**
     * 回复目标评论id
     */
    private Long toCommentId;

    private Long createBy;

    private Date createTime;
    private String username;

}

